package com.material.pound.service.impl;

import java.util.List;
import com.material.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.material.pound.mapper.FuelPoundIncentiveMapper;
import com.material.pound.domain.FuelPoundIncentive;
import com.material.pound.service.IFuelPoundIncentiveService;

/**
 * 磅单奖惩记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-20
 */
@Service
public class FuelPoundIncentiveServiceImpl implements IFuelPoundIncentiveService 
{
    @Autowired
    private FuelPoundIncentiveMapper fuelPoundIncentiveMapper;

    /**
     * 查询磅单奖惩记录
     * 
     * @param id 磅单奖惩记录主键
     * @return 磅单奖惩记录
     */
    @Override
    public FuelPoundIncentive selectFuelPoundIncentiveById(Long id)
    {
        return fuelPoundIncentiveMapper.selectFuelPoundIncentiveById(id);
    }

    /**
     * 查询磅单奖惩记录列表
     * 
     * @param fuelPoundIncentive 磅单奖惩记录
     * @return 磅单奖惩记录
     */
    @Override
    public List<FuelPoundIncentive> selectFuelPoundIncentiveList(FuelPoundIncentive fuelPoundIncentive)
    {
        return fuelPoundIncentiveMapper.selectFuelPoundIncentiveList(fuelPoundIncentive);
    }

    /**
     * 新增磅单奖惩记录
     * 
     * @param fuelPoundIncentive 磅单奖惩记录
     * @return 结果
     */
    @Override
    public int insertFuelPoundIncentive(FuelPoundIncentive fuelPoundIncentive)
    {
        fuelPoundIncentive.setCreateTime(DateUtils.getNowDate());
        return fuelPoundIncentiveMapper.insertFuelPoundIncentive(fuelPoundIncentive);
    }

    /**
     * 修改磅单奖惩记录
     * 
     * @param fuelPoundIncentive 磅单奖惩记录
     * @return 结果
     */
    @Override
    public int updateFuelPoundIncentive(FuelPoundIncentive fuelPoundIncentive)
    {
        return fuelPoundIncentiveMapper.updateFuelPoundIncentive(fuelPoundIncentive);
    }

    /**
     * 批量删除磅单奖惩记录
     * 
     * @param ids 需要删除的磅单奖惩记录主键
     * @return 结果
     */
    @Override
    public int deleteFuelPoundIncentiveByIds(Long[] ids)
    {
        return fuelPoundIncentiveMapper.deleteFuelPoundIncentiveByIds(ids);
    }

    /**
     * 删除磅单奖惩记录信息
     * 
     * @param id 磅单奖惩记录主键
     * @return 结果
     */
    @Override
    public int deleteFuelPoundIncentiveById(Long id)
    {
        return fuelPoundIncentiveMapper.deleteFuelPoundIncentiveById(id);
    }
}
